import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios';
import './assets/css/global.css'
import './plugins/wyz-echarts/wyz-echarts.js'
import VCharts from 'v-charts'
import moment from 'moment'
axios.defaults.baseURL='http://asfchn.cn:12222/vallis'

//给请求头加入Authorization字段
axios.interceptors.request.use(config=>{
 // console.log(config)
  config.headers.Authorization=window.sessionStorage.getItem('token')
  
  return config
})

Vue.prototype.$http=axios;
Vue.config.productionTip = false
Vue.use(VCharts)
Vue.prototype.$moment=moment


var vallisapp=new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
